<template>
  <div id="app">
    <HelloWorld />
  </div>
</template>

<script>
import HelloWorld from './views/HelloWorld.vue'
export default {
  name: 'App',
  components: {
    HelloWorld
  },
  methods: {},
  created () {
    // 刷新时保留store数据
    window.addEventListener('beforeunload', () => {
      this.$cache.s_set('state', this.$store.state, true)
    })
  }
}
</script>

<style></style>
